package com.jzx.provider.cv.repository;

import com.jzx.provider.cv.model.KeyWork;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * Created by dhh on 2019/12/21
 */
public interface KeyWordRepository extends JpaRepository<KeyWork, Integer> {
    @Query(nativeQuery = true, value = "select * from t_keyword limit :start,:end")
    List<KeyWork> findByPage(@Param("start") Integer start, @Param("end") Integer end);
}
